<div id="message" class="center alert alert-<?php echo $message->type; ?>">
    <button type="button" class="close" data-dismiss="alert">&times;</button>
<?php
    if( is_array( $message->message ) ):
        foreach( $message->message as $msg ): ?>
    <div class="messageText"><?php echo $msg; ?></div>
<?php endforeach;
    else: ?>
    <div class="messageText"><?php echo $message->message; ?></div>
<?php endif; ?>
</div>